package itheima.com.Test;

public class NumberDemo {
    public static void main(String[] args) {
        int sum1 = getSum(1,3,4,5,6);
        System.out.println(sum1);
    }

    private static int getSum(int number,int...arr) {
        int sum = 0;
        for (int i = 0; i < arr.length; i++) {
            sum +=arr[i];
        }
        return sum;
    }

}
